package com.bjsxt.login.config;

import com.bjsxt.redis.conf.RedisCacheConfiguration;
import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

@Configuration
public class DetailsConfiguration extends RedisCacheConfiguration {

    /**
     * 创建缓存管理器
     *
     * @param redisConnectionFactory
     * @return
     */
    @Override
    protected CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) {
        return super.cacheManager(redisConnectionFactory);
    }
    
}
